<!--
 * @Author: anxia.ack anchenkai@come-future.com
 * @Date: 2025-03-22 16:04:35
 * @LastEditors: anxia.ack anchenkai@come-future.com
 * @LastEditTime: 2025-03-22 17:12:44
 * @FilePath: /free-learning-front/src/views/HomeView.vue
 * @Description: 教育平台首页
-->
<template>
  <div class="home">
    <Slider />
    <div class="content-container">
      <CategorySection />
      <FeaturedCourses />
    </div>
  </div>
</template>

<script setup lang="ts">
import Slider from '../components/Slider.vue';
import CategorySection from '../components/CategorySection.vue';
import FeaturedCourses from '../components/FeaturedCourses.vue';

// 确保DOM更新后Slider可见
import { onMounted } from 'vue';

onMounted(() => {
  // 强制滚动到顶部确保轮播图可见
  window.scrollTo(0, 0);
});
</script>

<style scoped>
.home {
  width: 100%;
  height: 100%;
  overflow-x: scroll;
  margin-top: 0;
  padding-top: 0;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
</style> 